@typeparam TItem
@inherits AssignModalBase<TItem>

<Modal @ref="Modal" Id="@Id" Title="@Title" Size="ModalSize.Large">
    <ModalBody>
        <form class="form-inline">
            <div class="row">
                @foreach(var item in Items)
                {
                    <div class="form-group col-md-3 col-sm-4 col-6">
                        @ItemTemplate?.Invoke(item)
                    </div>
                }
            </div>
        </form>
    </ModalBody>
    <ModalFooter>
        <button type="button" class="btn btn-secondary" data-dismiss="modal">
            <i class="fa fa-times"></i>
            <span>关闭</span>
        </button>
        <button type="button" class="btn btn-primary" @onclick="Save">
            <i class="fa fa-save"></i>
            <span>保存</span>
        </button>
    </ModalFooter>
</Modal>
